import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'
import filter from 'util/filter'
import mixin from 'util/mixin'
import modal from 'components/modal/modal'

Vue.config.productionTip = false
Vue.use(filter)
Vue.use(mixin)
Vue.use(modal)

/**
 * @description loginWay 在微信下传 wx 不在微信下传 sms
 * 拿到ticket 回跳 returnUrl, 这个是测试环境的地址
 * http://test.yuyou100.com/yyfn-api/cas/login?loginWay=wx&returnUrl=https://cn.bing.com/
 * ticket 兑换 access_token
 * http://test.yuyou100.com/yyfn-api/api/m/loginByUC?ticket=eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0aWNrZXQiLCJwcElkIjoiNDExNiIsImV4cCI6MTU1MTM0NjA4OH0.sYrRwF4tNHAPEgTer4YmIIQIci0yuEHCEwRsEo2FvKbR1qAfnjE3XTFzKADLih1WuOxsTsbZfVCFVi3Ith9EgQ
 */

///ios兼容提示
try{
  window.localStorage.setItem('testSafari','true');
}catch(err){
  alert("本地储存写入错误，若为safari浏览器请关闭无痕浏览。");
}

window.sessionStorage.setItem( 'globalAreaTeamId', '564701030634225664' )

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')